
import { _decorator, Component, Node, find } from 'cc';
import { WindowNode } from './WindowNode';
import { WindowNodeLastLoader } from './WindowNodeLastLoader';
import { WindowNodeR } from './WindowNodeR';
const { ccclass, property } = _decorator;
declare global {
    interface Window {
        windowParentNode: any
    }
}
@ccclass('test1')
export class test1 extends Component {

    @property({
        displayName: 'windowParentNode',
        type: Node
    })
    private windowParentNode: Node = null;

    start() {
        window.windowParentNode = this.windowParentNode;
        console.log('test1 start');

    }

    clickW1(): void {
        let w1 = new WindowNode('WindowNode');
    }

    clickW1R(): void {
        let w1 = new WindowNodeR('WindowNodeR');
    }

    clickW1Last(): void {
        let w1 = new WindowNodeLastLoader('WindowNode_lastLoader');
    }


}
